package com.jsoft.jsofted.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsNotNull;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.jsoft.jsofted.framework.entity.OfUserEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 消息实体类：用来存储我的消息
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Table("sys_message")
@TableName("sys_message")
public class MessageEntity extends OfUserEntity {

    // 消息内容
    @Column(length = 512)
    @IsNotNull
    protected String content;

    /**
     * 消息状态：0-未读，1-已读
     */
    @Column
    @IsNotNull
    protected String statusCode;

}
